﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Project.API
{
    public class UniAppGoodJsonDto
    {
        public int id { get; set; }
        public string name { get; set; }
        public string icon { get; set; }
        public bool is_show_backstage { get; set; }
        public int sort { get; set; }

        public IEnumerable<UniAppGoodDto> goods_list { get; set; }
    }

    public class UniAppGoodDto
    {
        public int id { get; set; }
        public string name { get; set; }
        public string content { get; set; }
        public string images { get; set; }
        public bool use_spec { get; set; }
        public bool use_property { get; set; }
        public string unit { get; set; }
        public decimal price { get; set; }
        public int sales { get; set; }
        public int sort { get; set; }
        public int tid { get; set; }
        public IEnumerable<UniAppGoodPropertyKeyDto> property { get; set; }
    }

    public class UniAppGoodPropertyKeyDto
    {
        public int id { get; set; }
        public string name { get; set; }
        public IEnumerable<UniAppGoodPropertyValueDto> values { get; set; }
    }

    public class UniAppGoodPropertyValueDto
    {
        public int id { get; set; }
        public bool is_default { get; set; }
        public string code { get; set; }
        public string value { get; set; }
    }
}